package com.rogue.blog.model.po.article;

import com.rogue.blog.model.po.BasePO;
import com.rogue.blog.model.vo.article.ArticleCategoryVO;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * Created by 86101 on 2018-10-09.
 */
@Getter
@Setter
public class ArticleCategoryPO extends BasePO {
    private long categoryId;
    private String categoryName;
    private long userId;

    public ArticleCategoryVO toVO() {
        ArticleCategoryVO vo = new ArticleCategoryVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }
}
